package com.example.combwyaq.visualinterface.live.adapter;


import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.combwyaq.R;
import com.example.combwyaq.utils.GlideUtils;
import com.example.combwyaq.visualinterface.live.entity.LiveEntity;

import org.jetbrains.annotations.NotNull;


public class LiveAdapter extends BaseQuickAdapter<LiveEntity.Values, BaseViewHolder> {

    public LiveAdapter() {
        super(R.layout.item_live);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, LiveEntity.Values values) {
        baseViewHolder.setText(R.id.live_item_title,values.live_title);
        ImageView img = baseViewHolder.getView(R.id.live_item_img);
        GlideUtils.loadMatchImg(values.live_img,img);
    }
}
